package cn.gson.springboot.model.mapper;


import cn.gson.springboot.model.pojos.Complain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component("complainMapper")
public interface ComplainMapper {
    public List<Complain> selectAll(@Param("search") String search, @Param("type") Integer type);

    public List<Complain> selectComplainType();

    public Complain selectOne(Integer complainId);
}

